﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Streambolics.Data;

namespace Ewma.Data
{
    public class Invitation : ShareableObject
    {
        public Player Guest
        {
            get;
            set;
        }

        public InvitationStatus InvitationStatus
        {
            get;
            set;
        }

        public bool MayAccept ()
        {
            return 
                InvitationStatus == Data.InvitationStatus.Pending || 
                InvitationStatus == Data.InvitationStatus.Declined;
        }

        public bool MayDecline ()
        {
            return
                InvitationStatus == Data.InvitationStatus.Pending ||
                InvitationStatus == Data.InvitationStatus.Accepted;
        }

        public bool MayCrash ()
        {
            return InvitationStatus == Data.InvitationStatus.NotInvited;
        }
    }
}